﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="DangKi.aspx.cs" Inherits="DangKi" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">

        .TextBox { width: 280px; height: 20px;

        }
        .TextBoxDiaChi { width: 280px; height: 80px;

        }
        .ChuaTextBox { width: 480px;
        }
        .ChuaTieuDe { width: 90px;
        }
        .auto-style3 {
            height: 6px;
        }
        .auto-style4 {
            height: 5px;
        }
        .CanhPhai { width:195px; text-align:right;
        }
    .auto-style5 {
        width: 600px;
        height: 23px;
    }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:Panel ID="Panel9" runat="server" BorderWidth="2px" Height="654px" Width="99%" CssClass="Menucon" BorderColor="White">
        <table class="Menucon">
            <tr>
                <td style="color: #FFFF00; font-weight: bold; background-color: #008080; text-align: center;">
                    &nbsp;<asp:Label ID="lbDangKyThanhVien" runat="server" Text="ĐĂNG KÍ LÀM THÀNH VIÊN"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="color: #0000FF; font-size: large">
                    <asp:Label ID="lblThongBao" runat="server" Font-Bold="True" ForeColor="#FF0066"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="color: #0000FF; font-size: large; text-align: center; background-color: #E1DBE3;">
                    Cám ơn quý khách đã đăng kí làm thành viên của website chúng tôi.</td>
            </tr>
            <tr>
                <td style="font-style: italic; color: #FF0000; text-align: center; background-color: #E1DBE3;">
                    Vui lòng điền đầy đủ thông tin trước khi đăng kí.</td>
            </tr>
            <tr>
                <td  text-align: center; background-color: #E1DBE3;">
                    <table class="style24" style="background-color: #DED6E0; width: 101%;">
                        <tr>
                            <td class="auto-style5" colspan="2" style="color: #FF0000"></td>
                        </tr>
                        <tr>
                            <td class="CanhPhai">Tên đăng nhập:</td>
                            <td class="ChuaTextBox">
                                <asp:TextBox ID="txtTenDN" runat="server"  CssClass="TextBox"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="rfvThongBaoLoi" runat="server" ControlToValidate="txtTenDN" ErrorMessage="Tên đăng nhập không được để trống" ForeColor="Red"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="KhoangCachDong">&nbsp;</td>
                            <td class="KhoangCachDong">
                                <asp:Panel ID="pnThongBaoLoi" runat="server" ForeColor="Red" HorizontalAlign="Left">
                                </asp:Panel>
                            </td>
                        </tr>
                        <tr>
                            <td class="CanhPhai">Mật khẩu:</td>
                            <td class="ChuaTextBox">
                                <asp:TextBox ID="txtMatKhau1" runat="server" TextMode="Password" CssClass="TextBox"></asp:TextBox>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtMatKhau1" ErrorMessage="Mật khẩu dài ít nhất 6 ký tự" ForeColor="Red" ValidationExpression=".{6,32}"></asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="KhoangCachDong"></td>
                            <td class="KhoangCachDong">
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtMatKhau1" ErrorMessage="Mật khẩu không được để trống" ForeColor="Red"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="CanhPhai">Xác nhận mật khẩu:</td>
                            <td class="ChuaTextBox" >
                                <asp:TextBox ID="txtMatKhau2" runat="server"  TextMode="Password" CssClass="TextBox"></asp:TextBox>
                                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtMatKhau1" ControlToValidate="txtMatKhau2" ErrorMessage="Mật khẩu không khớp" ForeColor="Red"></asp:CompareValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="auto-style13"></td>
                            <td class="auto-style15">
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtMatKhau2" ErrorMessage="Nhập mật khẩu lần 2" ForeColor="Red"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="CanhPhai">Email: </td>
                            <td class="ChuaTextBox">
                                <asp:TextBox ID="txtEmail" runat="server" CssClass="TextBox"></asp:TextBox>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail" ErrorMessage="Email không hợp lệ" ForeColor="Red" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="KhoangCachDong"></td>
                            <td class="KhoangCachDong">
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtEmail" ErrorMessage="Email không được để trống" ForeColor="Red"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="CanhPhai">Họ tên:&nbsp;&nbsp;&nbsp; </td>
                            <td class="ChuaTextBox">
                                <asp:TextBox ID="txtHoTen" runat="server"  CssClass="TextBox"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="auto-style13"></td>
                            <td class="KhoangCachDong">
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtHoTen" ErrorMessage="Họ tên không được để trống" ForeColor="Red"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="CanhPhai">Số điện thoại:&nbsp;&nbsp;&nbsp; </td>
                            <td class="ChuaTextBox">
                                <asp:TextBox ID="txtSDT" runat="server"  CssClass="TextBox"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="KhoangCachDong"></td>
                            <td class="KhoangCachDong">
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtSDT" ErrorMessage="Số điện thoại từ 10 đến 11 số" ForeColor="Red" ValidationExpression=".{10,11}"></asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="CanhPhai">Địa chỉ:</td> 
                            <td class="auto-style14">
                                <asp:TextBox ID="txtDiaChi" runat="server" Height="74px" TextMode="MultiLine"  CssClass="TextBoxDiaChi"></asp:TextBox>
                                <br />
                            </td>
                        </tr>
                        <tr>
                            <td class="KhoangCachDong">
                                &nbsp;</td>
                            <td class="KhoangCachDong">
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtDiaChi" ErrorMessage="Địa chỉ không được để trống" ForeColor="Red"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="CanhPhai">
                                <asp:Label ID="lbQuyenTruyCap" runat="server" Text="Quyền truy cập: " Visible="False"></asp:Label>
                            </td>
                            <td class="auto-style14">
                                <asp:DropDownList ID="ddlquyen" runat="server" Height="24px" Width="151px" Visible="False">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td class="KhoangCachDong"></td>
                            <td class="KhoangCachDong"></td>
                        </tr>
                        <tr>
                            <td class="auto-style16">&nbsp;</td>
                            <td class="auto-style17">
                                <asp:ImageButton ID="btnDangKy" runat="server" Height="43px" ImageUrl="~/Img_Control/DangKi_Button.gif" OnClick="btnDangKy_Click" style="text-align: left" />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" style="text-align: center">&nbsp;&nbsp; </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </asp:Panel>
    <br />
</asp:Content>

